/**
 * 消息弹窗模块
 */
class MessagePopupModule {
	private static _instance: MessagePopupModule=null;
    public static get instance(): MessagePopupModule {
        if (MessagePopupModule._instance == null)
            MessagePopupModule._instance = new MessagePopupModule();
        return MessagePopupModule._instance;
    }
	public constructor() {
	}
	private view:MessagePopupView;
	//初始化
	public init(){
		let layer=LayerControl.top_layer;
		this.view=new MessagePopupView();
		layer.addChild(this.view);

		this.addEvent();
	}
	//添加事件
	private addEvent():void{
		this.view.addEvent();
	}
	//移除事件
	private removeEvent():void{
		this.view.removeEvent();
	}
}